package org.example.io;

import java.io.BufferedWriter;
import java.io.FileWriter;

public class TestBufferedWriter {
    public static void main(String[] args) throws Exception {
        //创建字符缓冲输出流
        BufferedWriter writer = new BufferedWriter(new FileWriter("D:\\tmp\\111.txt"));
        //写入数据
        writer.write("asqsqs");
        //关闭流
        writer.close();
    }
}
